package com.zeng.webmvc;

import com.zeng.web.WebApplicationInitializer;
import com.zeng.webmvc.listener.ComponentRequestListener;

import javax.servlet.ServletContext;
import javax.servlet.ServletException;

/**
 * @author zyb
 * @date 2021-03-22 22:59
 */
public class ComponentRequestListenerInitializer implements WebApplicationInitializer {
    @Override
    public void onStartup(ServletContext servletContext) throws ServletException {
        servletContext.addListener(ComponentRequestListener.class);
    }

    @Override
    public int ordinal() {
        return 50;
    }
}
